package com.cloud.template.scheduled;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 定时示例
 * Created by Viole on 2017/12/29.
 */
@Component
public class ScheduledTemplate {

    //定时器---每天的   12 14 点触发
    @Scheduled(cron = "0 0 12,14 * * ?")
    public void task(){

    }
}
